Add Bomberland arena#105
Open
Muhtasham wants to merge 1 commit intoCodeClash-ai:mainfrom
Open
Conversation
47708a4 to
4e12494
Compare
4e12494 to
9a53f59
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Bomberland arena to CodeClash as a separate game adapter.
Bomberland is a Bomberman-style multi-agent grid arena based on Coder One's Bomberland competition. Players submit
bomberland_agent.pywithnext_actions(game_state), controlling multiple units that move, place bombs, destroy blocks, damage opponents, and score across deterministic seeded simulations.What changed
BomberlandArenaand registered it in the arena registry.codeclash/bomberlandDocker image that pins the upstreamCoderOneHQ/bomberlandrepo for provenance at/opt/bomberland.bomberland_agent.py, runtime README, public docs page, and dummy smoke config.Runtime contract
sims_per_roundmust be even so both players receive paired starting sides.validation_timeoutbounds validation-time import/probe execution.agent_timeoutbounds each runtime agent call in a child process, so hanging submitted code is scored as an agent error instead of hanging the round.average_scores,total_scores,sims, and per-simulationdetailsJSON strings.Notes
connection.agent_id,agents[player].unit_ids,unit_state,entities,world, andtick.Verification
uv run ruff check codeclash/arenas/bomberland tests/arenas/test_bomberland.py codeclash/arenas/__init__.pyuv run pytest tests/arenas/test_bomberland.pyuv run python codeclash/arenas/bomberland/runtime/run_bomberland.py --sims 2 --ticks 40 --width 11 --height 11 --unit-count 3 --agent-timeout 0.25 --output /tmp/.../results.json --agent alpha=/tmp/.../alpha/bomberland_agent.py --agent beta=/tmp/.../beta/bomberland_agent.pydocker image rm codeclash/bomberland >/dev/null 2>&1 || true; uv run python main.py configs/examples/Bomberland__dummy__r1__s2.yaml -o /tmp/codeclash-bomberland-smoke-1777983276uv run pytest tests/arenasuv run mkdocs builduv run pre-commit run --all-filesuv run pytest